package com.xm.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
/**
 * @author xie'lin'feng
 * @date 2020-08-06-14:35
 * @description 用户商品优惠卷实体类
 */
public class CouponsUser{
	//属性
	private Integer cuId;
	//优惠券id
	private Integer couponsId;
	//领取的用户id
	private Integer couponsUserId;
	//领取时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date couponsReceiveTime;
	//状态 0未使用 1已使用 2已过期
	private Integer couponsStatus;
	//构造器
	public CouponsUser(){}
	public CouponsUser(Integer cuId,Integer couponsId,Integer couponsUserId,Date couponsReceiveTime,Integer couponsStatus){
		this.cuId=cuId;
		this.couponsId=couponsId;
		this.couponsUserId=couponsUserId;
		this.couponsReceiveTime=couponsReceiveTime;
		this.couponsStatus=couponsStatus;
}
	//getter setter方法
	public void setCuId(Integer cuId){
		this.cuId=cuId;
	}
	public Integer getCuId(){
		return cuId;
	}
	public void setCouponsId(Integer couponsId){
		this.couponsId=couponsId;
	}
	public Integer getCouponsId(){
		return couponsId;
	}
	public void setCouponsUserId(Integer couponsUserId){
		this.couponsUserId=couponsUserId;
	}
	public Integer getCouponsUserId(){
		return couponsUserId;
	}
	public void setCouponsReceiveTime(Date couponsReceiveTime){
		this.couponsReceiveTime=couponsReceiveTime;
	}
	public Date getCouponsReceiveTime(){
		return couponsReceiveTime;
	}
	public void setCouponsStatus(Integer couponsStatus){
		this.couponsStatus=couponsStatus;
	}
	public Integer getCouponsStatus(){
		return couponsStatus;
	}
	public String toString(){
		return "Couponsuser [cuId=" + cuId + ", couponsId=" + couponsId + ", couponsUserId=" + couponsUserId + ", couponsReceiveTime=" + couponsReceiveTime + ", couponsStatus=" + couponsStatus + "]";
	}
}

